package com.example.demo

import android.util.Log

object StackRecorder {
    const val TAG = "StackRecorder"

    @JvmStatic
    fun recordStack() {
        val stackTrace = Thread.currentThread().stackTrace
        val trace = stackTrace.joinToString("\n") { it.toString() }
        Log.d(TAG, "Thread created at:\n$trace")
    }
}